import request from '@/utils/request'

export const reqhospitalllist=(page=1,limit=5,shuju)=>{
    return request.get(`/admin/hosp/hospital/${page}/${limit}`,{
        params:shuju
    })
}
export const reqhospitallshow=(id)=>{
    return request.get(`/admin/hosp/hospital/show/${id}`)
}

export const reqhospitalsx=(id,status)=>{
    return request.get(`/admin/hosp/hospital/updateStatus/${id}/${status}`)
}

export const reqssq=(parentId)=>{
    return request.get(`/admin/cmn/dict/findByParentId/${parentId}`)
}

export const reqkeshi=(hoscode)=>{
    return request.get(`/admin/hosp/department/${hoscode}`)
}

export const reqpaibanrq=(page=1,limit=5,hoscode,depcode)=>{
    return request.get(`/admin/hosp/schedule/getScheduleRule/${page}/${limit}/${hoscode}/${depcode}`)
}

export const reqpaibanxx=(hoscode,depcode,workDate)=>{
    return request.get(`/admin/hosp/schedule/findScheduleList/${hoscode}/${depcode}/${workDate}`)
}